package com.daxt.model.dic;

/**
 * @description: 存储类型
 *
 * @author: lig
 * @date: 2021-07-22
 */
public enum AccessoryType {

	TYPE_1("1","本机磁盘存储"), //
	TYPE_2("2","本机minio存储"), //
	TYPE_3("3","网络minio存储"), //
	;

	private String key;
	private String value;

	private AccessoryType(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		AccessoryType[] values = AccessoryType.values();
		for (AccessoryType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
